#pragma once
#include <string.h>
#include "Scene.h"
using namespace System;
using namespace System::IO;
ref class scenario
{

public:
	
	//virtual ~scenario(void);
	scenario(System::String^ fileName);
	bool isReady(void);
	Scene^ GetNextScene(int i);
	int GetQuantityOfScenes(void);
	bool Save(void);
	bool addScene(int number);
	bool addScene(int number, String^ outerName_);
	bool makeOutput(String^ pathToFFmpEg);
	bool addSoundToVideo(String^ pathToFFmpEg);
	String^ GetProjectPath(void);
	//int numOfScenes;
private:
	void makeIt(String^ ffmpeg_, String^ avi_);
	String^ projectPath;
	String^ projectName;
	String^ fileProjectName;
	bool verifyFinalAndSound(void);
	int numOfScenes;
	String^ FileName;
	bool IsReady;
	bool ReadScenario(void);
	bool WriteScenario(void);
	array<String^> ^textOfScenary;
	array<Scene^> ^scenes;
	void analyse(String^ str);
	int numOfLines;
};
